﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WcfServiceSchool
{
    public class StudentDTO
    {
        public int StudentId { get; set; }
        public string StudentName { get; set; }

        public static StudentDTO CreateFromStudent(Student student)
        {
            StudentDTO studentDTO = new StudentDTO();
            studentDTO.StudentId = student.StudentId;
            studentDTO.StudentName = student.Name;
            return studentDTO;
        }
    }
}